# coding=utf-8


def calNum(num):
    i = 1
    result = 1

    while i <= num:
        result *= i
        i += 1
    return result

def calNum2(num):
    if num>=1:
        result = num* calNum(num-1)
    else:
        result=1
    return result

ret = calNum(3)
print(ret)
